﻿@model Kunlun.Models.FavourableCode
@{
	ViewBag.Title = "我的优惠券";
}
@section Head
{
	<link href="@Url.Content("~/Content/member/style.css")" rel="stylesheet" type="text/css" />
	<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
	<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
<div id="content">
	@Html.Partial("_MymenuPartial")
	<fieldset class="right">
		<legend>输入优惠券</legend>
		<p>@ViewData["remark"]</p>
		@using (Html.BeginForm()) {
			<dl>
				<dt>@Html.LabelFor(model => model.F_Code)：</dt><dd>@Html.EditorFor(model => model.F_Code)</dd><dd
					class="error">@Html.ValidationMessageFor(model => model.F_Code)
				</dd>
			</dl>
			<dl>
				<dt>@Html.LabelFor(model => model.Password)：</dt><dd>@Html.PasswordFor(model => model.Password, new { @class = "input1" })</dd><dd
					class="error">@Html.ValidationMessageFor(model => model.Password)</dd></dl>
			<p class="bu">
				<input type="submit" class="button" value="提 交" />
			</p>
  }
	</fieldset>
	<fieldset class="right">
		<legend>历史优惠券</legend>
		<table>
			<tr>
				<th>
					卡号
				</th>
				<th>
					面值
				</th>
				<th>
					使用时间
				</th>
			</tr>
			@foreach (Kunlun.Models.FavourableCode c in ViewData["Codes"] as List<Kunlun.Models.FavourableCode>) {
				<tr>
					<td>@c.F_Code
					</td>
					<td>@((int)(c.Price1 * 10))
					</td>
					<td>@c.BeginDate
					</td>
				</tr>
   }
		</table>
	</fieldset>
</div>
